texture Texture1;
sampler sourceMap = sampler_state
{
   Texture = (Texture1);
};
texture Texture2;
sampler overlayMap = sampler_state
{
   Texture = (Texture2);
};
float4 PixelShaderMain(float2 Texcoord : TEXCOORD0) : COLOR0
{ 
   float4 sum = tex2D(sourceMap, Texcoord);
   sum += tex2D(overlayMap, Texcoord);
   sum.x = min(sum.x, 1.0f);
   sum.y = min(sum.y, 1.0f);
   sum.z = min(sum.z, 1.0f);
   sum.w = min(sum.w, 1.0f);
   return sum;
}
technique Textured
{
   pass Pass_0
   {
      PixelShader = compile ps_2_0 PixelShaderMain();
   }
}